package com.ross.springboot.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * <p>
 * 
 * </p>
 *
 * @author ross
 * @since 2020-07-24
 */
@Table(name = "role_resources")
public class RoleResources implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @Column(name = "roleId")
    private Integer roleId;

    @Id
    @Column(name = "resourcesId")
    private String resourcesId;

    @Override
    public String toString() {
        return "RoleResources{" +
                "roleId=" + roleId +
                ", resourcesId='" + resourcesId + '\'' +
                '}';
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getResourcesId() {
        return resourcesId;
    }

    public void setResourcesId(String resourcesId) {
        this.resourcesId = resourcesId;
    }
}
